package com.px.project.module.ht.service.impl;

import java.util.List;

import com.px.common.dto.BaseQueryDto;
import com.px.project.module.ht.dto.UserLocationQueryDto;
import com.px.project.module.ht.entity.UserLocation;
import com.px.project.module.ht.mapper.UserLocationMapper;
import com.px.project.module.ht.service.UserLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 人员定位表 服务实现类
 *
 * @author 品讯科技
 * @since 2023-10-10
 */
@Service
public class UserLocationServiceImpl extends ServiceImpl<UserLocationMapper, UserLocation> implements UserLocationService {

    @Autowired
    private UserLocationMapper userLocationMapper;

    @Override
    public Page<UserLocation> selectPageList(BaseQueryDto<UserLocation> pageDto, UserLocationQueryDto param){
        return userLocationMapper.selectPageList(pageDto.toPage(), param);
    }

    @Override
    public Integer getCount(UserLocationQueryDto param){
        return userLocationMapper.getCount(param);
    }

    @Override
    public List<UserLocation> listOfOnline() {
        return this.userLocationMapper.selectUserLocation();
    }
}
